package org.dfzt.modules.online.cgreport.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

@TableName("onl_cgreport_item")
public class OnlCgreportItem implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.UUID)
    private String id;
    private String cgrheadId;
    private String fieldName;
    private String fieldTxt;
    private Integer fieldWidth;
    private String fieldType;
    private String searchMode;
    private Integer isOrder;

    public void setId(String id) {
        this.id = id;
    }

    private Integer isSearch;
    private String dictCode;
    private String fieldHref;
    private Integer isShow;
    private Integer orderNum;
    private String replaceVal;
    private String createBy;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private String updateBy;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public void setCgrheadId(String cgrheadId) {
        this.cgrheadId = cgrheadId;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public void setFieldTxt(String fieldTxt) {
        this.fieldTxt = fieldTxt;
    }

    public void setFieldWidth(Integer fieldWidth) {
        this.fieldWidth = fieldWidth;
    }

    public void setFieldType(String fieldType) {
        this.fieldType = fieldType;
    }

    public void setSearchMode(String searchMode) {
        this.searchMode = searchMode;
    }

    public void setIsOrder(Integer isOrder) {
        this.isOrder = isOrder;
    }

    public void setIsSearch(Integer isSearch) {
        this.isSearch = isSearch;
    }

    public void setDictCode(String dictCode) {
        this.dictCode = dictCode;
    }

    public void setFieldHref(String fieldHref) {
        this.fieldHref = fieldHref;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public void setReplaceVal(String replaceVal) {
        this.replaceVal = replaceVal;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof OnlCgreportItem)) return false;
        OnlCgreportItem onlCgreportItem = (OnlCgreportItem) o;
        if (!onlCgreportItem.canEqual(this)) return false;
        String str1 = getId(), str2 = onlCgreportItem.getId();
        if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false;
        String str3 = getCgrheadId(), str4 = onlCgreportItem.getCgrheadId();
        if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false;
        String str5 = getFieldName(), str6 = onlCgreportItem.getFieldName();
        if ((str5 == null) ? (str6 != null) : !str5.equals(str6)) return false;
        String str7 = getFieldTxt(), str8 = onlCgreportItem.getFieldTxt();
        if ((str7 == null) ? (str8 != null) : !str7.equals(str8)) return false;
        Integer integer1 = getFieldWidth(), integer2 = onlCgreportItem.getFieldWidth();
        if ((integer1 == null) ? (integer2 != null) : !integer1.equals(integer2)) return false;
        String str9 = getFieldType(), str10 = onlCgreportItem.getFieldType();
        if ((str9 == null) ? (str10 != null) : !str9.equals(str10)) return false;
        String str11 = getSearchMode(), str12 = onlCgreportItem.getSearchMode();
        if ((str11 == null) ? (str12 != null) : !str11.equals(str12)) return false;
        Integer integer3 = getIsOrder(), integer4 = onlCgreportItem.getIsOrder();
        if ((integer3 == null) ? (integer4 != null) : !integer3.equals(integer4)) return false;
        Integer integer5 = getIsSearch(), integer6 = onlCgreportItem.getIsSearch();
        if ((integer5 == null) ? (integer6 != null) : !integer5.equals(integer6)) return false;
        String str13 = getDictCode(), str14 = onlCgreportItem.getDictCode();
        if ((str13 == null) ? (str14 != null) : !str13.equals(str14)) return false;
        String str15 = getFieldHref(), str16 = onlCgreportItem.getFieldHref();
        if ((str15 == null) ? (str16 != null) : !str15.equals(str16)) return false;
        Integer integer7 = getIsShow(), integer8 = onlCgreportItem.getIsShow();
        if ((integer7 == null) ? (integer8 != null) : !integer7.equals(integer8)) return false;
        Integer integer9 = getOrderNum(), integer10 = onlCgreportItem.getOrderNum();
        if ((integer9 == null) ? (integer10 != null) : !integer9.equals(integer10)) return false;
        String str17 = getReplaceVal(), str18 = onlCgreportItem.getReplaceVal();
        if ((str17 == null) ? (str18 != null) : !str17.equals(str18)) return false;
        String str19 = getCreateBy(), str20 = onlCgreportItem.getCreateBy();
        if ((str19 == null) ? (str20 != null) : !str19.equals(str20)) return false;
        Date date1 = getCreateTime(), date2 = onlCgreportItem.getCreateTime();
        if ((date1 == null) ? (date2 != null) : !date1.equals(date2)) return false;
        String str21 = getUpdateBy(), str22 = onlCgreportItem.getUpdateBy();
        if ((str21 == null) ? (str22 != null) : !str21.equals(str22)) return false;
        Date date3 = getUpdateTime(), date4 = onlCgreportItem.getUpdateTime();
        return !((date3 == null) ? (date4 != null) : !date3.equals(date4));
    }

    protected boolean canEqual(Object other) {
        return other instanceof OnlCgreportItem;
    }


    public String toString() {
        return "OnlCgreportItem(id=" + getId() + ", cgrheadId=" + getCgrheadId() + ", fieldName=" + getFieldName() + ", fieldTxt=" + getFieldTxt() + ", fieldWidth=" + getFieldWidth() + ", fieldType=" + getFieldType() + ", searchMode=" + getSearchMode() + ", isOrder=" + getIsOrder() + ", isSearch=" + getIsSearch() + ", dictCode=" + getDictCode() + ", fieldHref=" + getFieldHref() + ", isShow=" + getIsShow() + ", orderNum=" + getOrderNum() + ", replaceVal=" + getReplaceVal() + ", createBy=" + getCreateBy() + ", createTime=" + getCreateTime() + ", updateBy=" + getUpdateBy() + ", updateTime=" + getUpdateTime() + ")";
    }


    public String getId() {
        return this.id;
    }

    public String getCgrheadId() {
        return this.cgrheadId;
    }

    public String getFieldName() {
        return this.fieldName;
    }

    public String getFieldTxt() {
        return this.fieldTxt;
    }

    public Integer getFieldWidth() {
        return this.fieldWidth;
    }

    public String getFieldType() {
        return this.fieldType;
    }

    public String getSearchMode() {
        return this.searchMode;
    }

    public Integer getIsOrder() {
        return this.isOrder;
    }

    public Integer getIsSearch() {
        return this.isSearch;
    }

    public String getDictCode() {
        return this.dictCode;
    }

    public String getFieldHref() {
        return this.fieldHref;
    }

    public Integer getIsShow() {
        return this.isShow;
    }

    public Integer getOrderNum() {
        return this.orderNum;
    }

    public String getReplaceVal() {
        return this.replaceVal;
    }

    public String getCreateBy() {
        return this.createBy;
    }


    public Date getCreateTime() {
        return this.createTime;
    }

    public String getUpdateBy() {
        return this.updateBy;
    }


    public Date getUpdateTime() {
        return this.updateTime;
    }
}
